﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home-TinTuc.master" AutoEventWireup="true"
    CodeFile="Chi-Tiet-Nhom-Tin.aspx.cs" Inherits="Chi_Tiet_Nhom_Tin" %>

<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Headchude" runat="Server">
    <title>
        <asp:Literal ID="litTieuDe" runat="server"></asp:Literal>
        -
        <%= Common.tieude %></title>
    <meta content='<%= Constants.DESCRIPTION_CHONWEB %>' name='description' />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contentchude" runat="Server">
    <asp:UpdatePanel runat="server" ID="updatePanel1" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="linkchuyenmucdetail">
                <asp:Image ID="imagearrow" runat="server" ImageUrl="~/Images/dotnetgroup/gohome.png"
                    Width="16px" EnableViewState="false" />
                <asp:HyperLink ID="linkHome" runat="server" EnableViewState="false" NavigateUrl="~/"
                    CssClass="linkhomedetail">Trang Chủ</asp:HyperLink>
                »
                <asp:HyperLink ID="linkTinTuc" runat="server" EnableViewState="false" NavigateUrl="~/Tin-Tuc.aspx"
                    CssClass="linkhomedetail">Tin Tức</asp:HyperLink>
                »
                <asp:HyperLink ID="linkloaitin" runat="server" EnableViewState="false" CssClass="linkhomedetail">
                    <asp:Label ID="lblLoaiTin" runat="server"></asp:Label></asp:HyperLink>
            </div>
            <asp:DataList runat="server" ID="dtlDsTinTuc" RepeatDirection="Vertical" RepeatLayout="Flow">
                <ItemTemplate>
                    <div class="borderphai">
                        <div class="tieude-tintuc">
                            <h2 style="font-weight: bold;">
                                <asp:HyperLink runat="server" ID="linkTieude" NavigateUrl='<%# "~/TinTuc/"+ GetTieuDe(Eval("TieuDe")) + "_"  + Eval("Id") + ".aspx" %>'
                                    EnableViewState="false">
                            <%# Eval("TieuDe") %> </asp:HyperLink>
                            </h2>
                            <p>
                                <span>Lượt xem: </span><b>
                                    <%# Eval("LuotXem") %></b> <span>Ngày đăng: </span><b>
                                        <%# Convert.ToDateTime(Eval("NgayCapNhat")).ToString("dd/MM/yyyy")%></b>
                            </p>
                        </div>
                        <div class="body-tintuc">
                            <div class="logo-tintuc">
                                <img src='<%# ResolveUrl("Upload/AnhDaiDien/" + Eval("AnhDaiDien")) %>' alt='<%# Eval("TieuDe") %>'
                                    width="200px" height="150px" />
                            </div>
                            <div class="content-tintuc">
                                <%# formatString(Server.HtmlDecode(Eval("TomTat").ToString()), 450)%>
                            </div>
                        </div>
                        <div class="xemtiep-tintuc">
                            <asp:HyperLink runat="server" ID="linkXemtiep" EnableViewState="false" NavigateUrl='<%# "~/TinTuc/" + GetTieuDe(Eval("TieuDe")) +  "_" + Eval("Id") + ".aspx" %>'>Xem tiếp</asp:HyperLink>
                        </div>
                        <div class="thong-tin-tintuc">
                        </div>
                    </div>
                </ItemTemplate>
            </asp:DataList>
            <div class="phan-trang">
                <cc1:Pager ID="Pager1" runat="server" PreviousClause="<img src='../Images/prevBtn.gif' alt='previous' />"
                    NextClause="<img src='../Images/nextBtn.gif' alt='next' />" LastClause="Cuối"
                    FirstClause="Đầu" PageClause="<html><b>Trang </b></html>" ShowResultClause="Hiển thị từ"
                    ShowingResultClause="Đang hiển thị từ" BackToPageClause="Về trang" NextToPageClause="Đến trang"
                    OfClause=" / " PageSize="4" OnCommand="Pager1_Command" ForeColor="#CC0000" Font-Bold="True"
                    EnableViewState="false" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
